package cn.bitkit.component.id;

import lombok.Getter;

import java.time.LocalDateTime;

/**
 * @author changbo
 */
@Getter
public class IdHelper {

    public static String getId() {
        return ULID.getId();
    }

    public static String getId(LocalDateTime date) {
        return ULID.getId(date);
    }

    public static LocalDateTime getTime(String id) {
        return ULID.toDate(id);
    }

}
